// 统一 API 返回格式
import dayjs from "dayjs";

export interface ApiResponse<T = any> {
  code: number;
  message: string;
  data: T;
}

// 用户信息结构
export interface UserInfo {
  id: number;
  username?: string;
  phone: string;
  avatar?: string;
  birth_day?: string | dayjs.Dayjs;
  sex?: string;
  signature?: string;
  isFollowing?: boolean;
  followCount?: number;
  followerCount?: number;
}

export interface Post {
  id: number;
  authorName: string;
  authorAvatar: string;
  text: string;
  image?: string; // 可选字段
}
